﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Exentials.Xoox
{
    internal class XElementVal<T> : XElementBase
    {
        private XAttributeBase<T> _val;

        public XElementVal(string tag)
            : base(tag)
        {
            _val = new XAttributeBase<T>(this, "val");
        }

        public XElementVal(int sequence, string tag)
            : base(tag)
        {
            _val = new XAttributeBase<T>(this, "val");
        }

        public T Val
        {
            get { return _val.Value; }
            set { _val.Value = value; }
        }
    }
}
